package com.sharemarking.wa.platform.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sharemarking.wa.common.entity.DriverAttachment;
import org.apache.ibatis.annotations.Select;
import org.omg.PortableInterceptor.INACTIVE;
import org.springframework.stereotype.Repository;

/**
 * @author dxy
 */
@Repository
public interface DriverAttachmentMapper extends BaseMapper<DriverAttachment> {

    @Select("DELETE FROM wa_driver_attachment WHERE driver_verify_id = (SELECT id FROM wa_driver_verify WHERE member_id = #{memberId})")
    void deleteByMemberId(Integer memberId);
}
